package online.test1;

import java.util.Scanner;

/**
 * @Author 28021
 * @Date 2022/10/10
 */
public class StringBuilderTest {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入字符串：");
        String str= in.next();

        StringBuilder sb = new StringBuilder().append(str).reverse();//链式编程
        System.out.println(sb);
    }
}
